package com.fileindexer;

/**
FileIndexer: Places String representations of each filename on the indexed drive into a
				HashMap and stored on disk. That index is used to allow searching for a
				file in a quick fashion. The built in file searching tools on Mac OSX are
				meant for people who are only interested in finding files in their Home
				Directory. FileIndexer goes deeper and allows you to search for, and find
				files that Finder and Spotlight skip.

Author: Brad Howard
Date: 8/1/2012


*/


import java.io.File;
import java.io.Serializable;

public class FileObject implements Serializable
{

	private static final long serialVersionUID = 1L;
	//path to file. Returned to user when searched
	private String filename = null;
	//stores array of strings that are used to exclude files from index
	private String[] userprefs = null;

	
	public FileObject(){}//default
	
	public FileObject(File file)//primary
	{
		filename = file.getAbsolutePath();			
	}
	
	public FileObject(String[] array)//secondary
	{
		userprefs = array;
	}
	
	
	public String getFileName()
	{
		return filename;
	}
	public String[] getPrefs()
	{
		return userprefs;
	}
	
}